package ui.mainscreen;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JLabel;

/**
 * Кнопка главного меню
 * 
 * @author Anton Nesterov
 */
public class MenuButton extends JButton {

	private static final long serialVersionUID = 1L;

	public JLabel menuButtonTitle = new JLabel();

	public MenuButton(String titleButton) {
		setPreferredSize(new Dimension(200, 50));
		setMaximumSize(new Dimension(200, 50));
		setIcon(new ImageIcon("image/menubutton.jpg"));
		menuButtonTitle.setText(titleButton);
		menuButtonTitle.setFont(new Font("Tahoma", 1, 22));
		menuButtonTitle.setForeground(new Color(30, 144, 255));
		menuButtonTitle.setAlignmentX(CENTER_ALIGNMENT);
		add(menuButtonTitle);
	}

}
